<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX" xmlns:epm="http://www.bp.com.cn/epm">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
	</w:head>
	<w:page title="新建岗位">
		<w:form clientValidate="true">
			<layout:panel border="false" autoHeight="true" styleClass="k4-form">
				<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-form-toolbar">
					<w:toolBar>
						<w:button label="保存" id="save" image="/images/save.gif" />
						<w:separator />
						<w:button label="返回" image="/images/cancel.gif" immediate="true" id="cancel"
							onclick="javascript:closeCenterLayoutTab('addPositionTab')" alwaysSubmit="false"/>
					</w:toolBar>
				</layout:panel>
				<layout:panelGrid columns="4" cellpadding="0" cellspacing="0" border="1"
					styleClass="k4-form-grid">
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="岗位名称" for="name" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField styleClass="k4-form-textfield" id="name" allowBlank="false" required="true"></w:textField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="岗位职级" for="postGrade" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField styleClass="k4-form-textfield" id="postGrade" allowBlank="false" required="true"></w:textField>
					</layout:cell>
					<!--<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="岗位类别" for="postType" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="postType" styleClass="k4-form-comofield" editable="false" required="true">
							<f:selectItems id="types"></f:selectItems>
						</w:combo>
					</layout:cell>
					-->
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="岗位定员" for="postNumber" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:numberField styleClass="k4-form-numberfield" id="postNumber" allowBlank="false"
							allowDecimals="false" allowNegative="false" required="true"></w:numberField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="是否有效" for="enable" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="enable" styleClass="k4-form-comofield" editable="false" required="true">
							<f:selectItems id="enables"></f:selectItems>
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="直接上级" for="directChief" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<epm:personSingleSelect idField="directChief"></epm:personSingleSelect>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="直接下级" for="directJunior" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<epm:personMultiSelect idField="directJunior"></epm:personMultiSelect>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="职责概要" for="postEssential" />
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:simpleHtmlEditor height="150" width="600" allowBlank="false" id="postEssential"
							clientValidate="false" requiredMessage="职责概要必须填写" msgTarget="under" required="true"
							fontFamilies="['宋体','隶书','楷体','仿宋','黑体','华文彩云','华文琥珀','幼圆','Times New Roman','微软雅黑','楷体_GB2312','仿宋_GB2312']"></w:simpleHtmlEditor>
					</layout:cell>
				</layout:panelGrid>
			</layout:panel>
		</w:form>
	</w:page>
</f:view>